import request from '@/config/axios'

// 展项管理 VO
export interface ExhibitionItemsVO {
  id: number // 主键ID
  projectId: number // 项目ID (外键)
  itemName: string // 展项名称
  projectManager: string // 项目经理
  customerManager: string // 客户经理
}

// 展项管理 API
export const ExhibitionItemsApi = {
  // 查询展项管理分页
  getExhibitionItemsPage: async (params: any) => {
    return await request.get({ url: `/shuhu/exhibition-items/page`, params })
  },

  // 查询展项管理详情
  getExhibitionItems: async (id: number) => {
    return await request.get({ url: `/shuhu/exhibition-items/get?id=` + id })
  },

  // 新增展项管理
  createExhibitionItems: async (data: ExhibitionItemsVO) => {
    return await request.post({ url: `/shuhu/exhibition-items/create`, data })
  },

  // 修改展项管理
  updateExhibitionItems: async (data: ExhibitionItemsVO) => {
    return await request.put({ url: `/shuhu/exhibition-items/update`, data })
  },

  // 删除展项管理
  deleteExhibitionItems: async (id: number) => {
    return await request.delete({ url: `/shuhu/exhibition-items/delete?id=` + id })
  },

  // 导出展项管理 Excel
  exportExhibitionItems: async (params) => {
    return await request.download({ url: `/shuhu/exhibition-items/export-excel`, params })
  }
}